﻿<%@ Page Title="" Language="C#" MasterPageFile="../Examples.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DotNetSources.Web.UI.Buttons.Examples.Examples._4_JS_MessageBox.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentDescription" runat="server">
    Scenario: <em>Click --> display client driven message box</em>.
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentExample" runat="server">
    <input type="button" value="Click to display message box"
            onclick="javascript: DotNetSources.MessageBox.get_instance().Show('This message box was displayed from JavaScript!', DotNetSources.Icons.Error)" />
            
    <br />
    <br />
    Code:
    <div class="code">
    &lt;input type="button" value="Click to display message box"
            onclick="javascript: DotNetSources.MessageBox.get_instance().Show('This message box was displayed from JavaScript!', DotNetSources.Icons.Error)" /&gt;
    </div>    
</asp:Content>
